# Rollback employee move

Reverts the employee’s most recent location move within the current account context based on the provided rollback details.
            
Behavior:
- Validates employee association with the account
- Ensures a current move exists that is eligible for rollback
- Restores the employee to the previous location state
- Updates move history accordingly
- Returns updated rollback information
- Logs the action as an employee move rollback event

Endpoint: POST /api/v1/portfolio/employees/{employeeId}/location/moves/current/rollback

## Path parameters:

  - `employeeId` (string, required)

## Request fields (application/json-patch+json):

  - `toMoveHistoryId` (string)

  - `comments` (string,null)

## Response 200 fields (text/plain):

  - `data` (object)

  - `data.employeeIdentifier` (string)

  - `data.employeeName` (string,null)

  - `data.employeeLocations` (array,null)

  - `data.employeeLocations.location` (string,null)

  - `data.employeeLocations.locationId` (string,null)

  - `data.employeeLocations.building` (string,null)

  - `data.employeeLocations.buildingId` (string,null)

  - `data.employeeLocations.level` (string,null)

  - `data.employeeLocations.levelId` (string,null)

  - `data.employeeLocations.room` (string,null)

  - `data.employeeLocations.roomId` (string,null)

  - `data.employeeLocations.workspace` (string,null)

  - `data.employeeLocations.workspaceId` (string,null)

  - `data.employeeLocations.spaceKey` (string,null)

  - `data.employeeLocations.spaceAssignedOn` (string,null)

  - `data.employeeLocations.spaceCategory` (object)

  - `data.employeeLocations.spaceCategory.spaceCategoryId` (string)

  - `data.employeeLocations.spaceCategory.spaceCategoryName` (string,null)

  - `data.employeeLocations.spaceCategory.spaceCategoryCode` (string,null)

  - `data.employeeLocations.roomFunction` (object)

  - `data.employeeLocations.roomFunction.roomFunctionId` (string)

  - `data.employeeLocations.roomFunction.roomFunctionName` (string,null)

  - `data.employeeLocations.spaceArea` (number,null)

  - `data.employeeLocations.levelPlanHandle` (string,null)

  - `data.employeeLocations.employeeLocationId` (string,null)

  - `data.employeeLocations.rollBackInfo` (object)

  - `data.employeeLocations.rollBackInfo.isRollBack` (boolean)

  - `data.employeeLocations.rollBackInfo.rollBackType` (string,null)

  - `data.employeeLocations.rollBackInfo.employeeLocationId` (string)

  - `data.employeeLocations.rollBackInfo.comments` (string,null)

  - `data.employeeLocations.levelPlanId` (string,null)

  - `data.employeeLocations.planFile` (object)

  - `data.employeeLocations.planFile.fileId` (string)

  - `data.employeeLocations.planFile.fileName` (string,null)

  - `data.employeeLocations.planFile.fileSize` (string,null)

  - `data.employeeLocations.planFile.currentRevisionNumber` (integer)

  - `data.employeeLocations.planFile.createdOn` (string,null)

  - `data.employeeLocations.planFile.fileSizeInBytes` (integer)

  - `data.employeeLocations.planFile.createdDate` (string)

  - `data.employeeLocations.planFile.createdBy` (string,null)

  - `data.employeeLocations.planFile.isLatest` (boolean)

  - `data.employeeLocations.cadPlanCoordinates` (array,null)

  - `data.employeeLocations.spaceAssignedOnDateTimeFormat` (string,null)

  - `data.employeeLocations.svgPlanAdded` (boolean)

  - `data.responseDescription` (string,null)

  - `message` (string,null)

  - `isError` (boolean)

  - `messageCode` (integer)

  - `status` (string,null)

  - `errorType` (string,null)

  - `traceid` (string,null)

  - `responseDescription` (string,null)


